import Home from "@/views/10_views_综合列表案例/01_基本路由.vue";
import Complete from "@/views/10_views_综合列表案例/Complete.vue";
import InComplete from "@/views/10_views_综合列表案例/InComplete.vue";
import Todo from "@/views/10_views_综合列表案例/Todo.vue";


import {createRouter , createWebHistory} from 'vue-router'

//1：定义路由
const routes = [
    {
        path: '/',
        component: Home
    },
    {
        path: '/todo',
        component: Todo,
    },
    {
        path: '/complete',
        component: Complete,
    },
    {
        path: '/inComplete',
        component: InComplete,
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

//2：导出
export default router;
